<!DOCTYPE html>

<html xmlns:th="http://www.thymeleaf.org">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title></title>
<link rel="stylesheet" href="/css/newStyle.css" th:href="@{/css/newStyle.css}">
<link href="../junior/css/bootstrap.css" rel="stylesheet" />
<link href="../junior/css/Multiselect/style.css" rel="stylesheet" />
<script src="../junior/js/jquery-3.2.1.min.js"></script>
<script src="../junior/js/bootstrap.js"></script>
<script src="../junior/js/multiselect.min.js"></script>

</head>
<body>
<!-- 返回上一级提交表单 -->
<form id="returnBack" action="check" method="post">
	<!-- <input type="hidden" th:value="${junior.byzxdm}" name="byzxdm" />
	<input type="hidden" th:value="${junior.byzxmc}" name="byzxmc" /> -->
	<input type="hidden" th:value="${zkw.userid}" name="userid" />
	<input type="hidden" th:value="${zkw.password}" name="password" />
	<input type="hidden" th:value="${zkw.username}" name="username" />
</form>
<div class="mainBox">
		<div class="mainBox_inner">
	<h1>凉山州中考信息管理系统(县市招办)</h1>
	
	<form id="form1" action="" method="post">
	<input id="param_zxdm" type="hidden" name="byzxdm" value="">
		<div class="container">
			<div class="clearfix" style="margin-bottom: 20px;"></div>
			
			<div class="row" style="text-align:right;margin-bottom:20px;">
				<div class="col-xs-6 col-md-6 text-left"><span th:text="${zkw.username}+' 重置初级中学密码'"></span></div>
				<div class="col-xs-6 col-md-6 text-right">	<a href="JavaScript:void(0);" onclick="$('#returnBack').submit();">返回上级</a>
					<a href="logout">安全退出</a></div>
			</div>
			<div class="row">
						<hr style=" height:2px;border:none;border-top:2px solid #185598;" />
						</div>
	
			<div class="row" >
				<div class="col-xs-3" ></div>
				<div class="col-xs-6" th:object="${juniorlist}">
					<div class="row">
						<div class="input-group">
							<span class="input-group-addon"
								style="color: rgb(0, 91, 171); font-size: 14px">本县初级中学</span> <input
								type="text" class="form-control" placeholder="选择下面的学校，然后点击重置" id="junior_dm"/>

						</div>
						<div class="clearfix" style="margin-bottom: 10px;"></div>
						<!-- <button type="button" class="btn center-block" id="search1"
							name="search1">查询</button> -->
					</div>
					<div class="clearfix" style="margin-bottom: 10px;"></div>
					<div class="row">
						<select name="from" class="js-multiselect form-control" size="20"
							multiple="multiple" id="left" >

							<option th:if="${juniorlist!=null}"
								th:each="juniorlist:${juniorlist}"
								th:value="${juniorlist.byzxdm}"
								th:text="${juniorlist.byzxmc} + '  ' + ${juniorlist.byzxdm}"
								th:attr="data-isUpdate=false">Item
								1</option>

						</select>
					</div>
				</div>
<div class="col-xs-3" ></div>
</div>
				
			<div class="row">
				<button type="submit" id="resetpwd" class="btn btn-primary btn-block" onclick="resetPwd()" >重置</button>
			</div>
		</div>
	</form>
</div>
</div>
</body>
<script th:inline="javascript">
function resetPwd() {
        var form1 = $("#form1");
         {
        	 $("#param_zxdm").val($("#left").val());
            form1.action = "doResetPasswd";
            $("#form1").attr("action", form1.action);
            form1.submit();
        }

    }    
    
    
    //	返回上一级
    function retunBack(){
    	$.ajax({
    		url:"/city/check",
    		method:'post',
    		data:{
	    			'byzxdm':junior.byzxdm
	    			,'byzxmc':junior.byzxmc
	    			,'password':junior.password
    			},
    		 dataType: 'xml',
    		success:function(data){
    			alert(data);
    		},error:function(){
    			alert("error...");
    		 }
    	});

    }
</script>

</html>
